class Person {
  late String name;
  late int age;

  // 初始化列表
  Person(): name = '张三', age = 30 {
    print(this.name);
  }
}

void main() {
  Person p = new Person();
  print(p.name);
}
